package com.zsrt.tmall.company.controller;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.zsrt.tmall.company.service.CompanyService;

/**
*@author jzh
*@创建时间 2017年6月23日下午5:27:14
*类说明：
*/

@Controller
public class CompanyController {
	
	@Autowired
	CompanyService service;
	Map<String , Object>map=new HashMap<>();
	
	/**
	 * http://localhost:8088/jzh-ssm-ch02/findById?id=10
	 * @param id
	 * @return
	 */
	@ResponseBody
	@RequestMapping("/findById")
	public Map<String , Object> findById(int id){
		service.findById(id, map);
		return map;
	}
}
